﻿using NeuralStock.Common;
using NeuralStock.Tools;
using NeuralStock.DomainService;
using System.Linq;
using NeuralStock.DomainService.Interfaces;
using Microsoft.Practices.Unity;
using NeuralStock.Entities;
using NeuralStock.Tools;
using System;

namespace NeuralStock.Import
{
    class Program
    {
        static void Main(string[] args)
        {
            DirectoryRepository.Initialize();
    
            #region Macro data import

            //IMacroDataImportService macroDataImportService = Bootstrapper.GetUnityContainer().Resolve<IMacroDataImportService>();
            //macroDataImportService.ImportData();

            #endregion

            #region Console as tester

            //IGpwCompanyQuotationImportService gpwQuotesService = Bootstrapper.GetUnityContainer().Resolve<IGpwCompanyQuotationImportService>();
            //gpwQuotesService.ImportDataFromLocal();
            ////gpwQuotesService.ImportDataFromWeb(new DateTime(2013, 8, 30), new DateTime(2013, 8, 30));

            //IGpwCompanyIndicatorsImportService indicatorsService = Bootstrapper.GetUnityContainer().Resolve<IGpwCompanyIndicatorsImportService>();
            //indicatorsService.ImportData();

            //IMoneyImportService moneyService = Bootstrapper.GetUnityContainer().Resolve<IMoneyImportService>();
            //moneyService.ImportData();

            //IBossaImportService bossaService = Bootstrapper.GetUnityContainer().Resolve<IBossaImportService>();
            //bossaService.ImportData();

            IGamblerService service = Bootstrapper.GetUnityContainer().Resolve<IGamblerService>();
            var result = service.Process();

            #endregion

        }
    }
}
